<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->

	<link href="/statics/simpleboot/themes/<?php echo C('SP_ADMIN_STYLE');?>/theme.min.css" rel="stylesheet">
    <link href="/statics/simpleboot/css/simplebootadmin.css" rel="stylesheet">
    <link href="/statics/js/artDialog/skins/default.css" rel="stylesheet" />
    <link href="/statics/simpleboot/font-awesome/4.2.0/css/font-awesome.min.css"  rel="stylesheet" type="text/css">
    <style>
		.length_3{width: 180px;}
	</style>
	<!--[if IE 7]>
	<link rel="stylesheet" href="/statics/simpleboot/font-awesome/4.2.0/css/font-awesome-ie7.min.css">
	<![endif]-->
<script type="text/javascript">
//全局变量
var GV = {
    DIMAUB: "/",
    JS_ROOT: "statics/js/",
    TOKEN: ""
};
</script>
<!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="/statics/js/jquery.js"></script>
    <script src="/statics/js/wind.js"></script>
    <script src="/statics/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<?php if(APP_DEBUG): ?><style>
		#think_page_trace_open{
			z-index:9999;
		}
	</style><?php endif; ?>
<body class="J_scroll_fixed" style="min-width:800px;">
<div class="wrap J_check_wrap">
    <ul class="nav nav-tabs">
        <li ><a href="<?php echo U('Financialadmin/index');?>" >订单列表</a></li>
        <li ><a href="<?php echo U('Financialadmin/show');?>">订单详情</a></li>
        <li class="active"><a href="<?php echo U('Financialadmin/statistics');?>">统计信息</a></li>
    </ul>
        <!--
        <div class="mb10">
              <a href="<?php echo U('page/add');?>" target="_blank" class="btn" title="添加页面"><span class="add"></span>添加页面</a>
        </div>
        -->
        <form  class="well form-search" method="post" action="<?php echo U('Financialadmin/search');?>">
            <div class="search_type cc mb10">
                <div class="mb10">
					<span class="mr20">时间：
						<input type="text" class="input length_2 J_date" id="start_time" name="start_time" value="<?php echo ($formget["start_time"]); ?>" style="width:80px;" autocomplete="off">-
                        <input autocomplete="off" type="text" class="input length_2 J_date" id="end_time" name="end_time" value="<?php echo ($formget["end_time"]); ?>" style="width:80px;">
                        <input type="hidden" value="1" id="type" name="type">
						<input id="search" name="search" type="submit" class="btn" value="搜索">
                        <?php if(!empty($total)): ?><b class="qiangdiao">总成交：￥<b class="qiangqiangdiao"><?php echo ($total); ?></b>RMB</b><?php endif; ?>
                        <?php if(!empty($num_total)): ?><b class="qiangdiao">总订单数：<b class="qiangqiangdiao"><?php echo ($num_total); ?></b>个</b><?php endif; ?>
					</span>
                </div>
            </div>
        </form>
        <div class="h_a">订单统计表</div>
        <form class="J_ajaxForm" action="" method="post">
            <div class="table_list">
                <table width="100%" class="table table-hover">
                    <thead>
                    <tr>
                        <th width="16"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></th>
                        <th style="background-color: #FFFFFF" width="100">日期</th>
                        <th width="80">当日订单数</th>
                        <th width="">订单分类数</th>
                        <th width="150">当天成交</th>
                        <th width="150">当天总订单数</th>
                        <th width="120">操作</th>
                    </tr>
                    </thead>
                    <?php if(!empty($data)): if(is_array($data)): foreach($data as $key=>$vo): ?><tr>
                            <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="<?php echo ($order["orderId"]); ?>"></td>
                            <td><?php echo ($key); ?></td>
                            <td><?php echo ($vo["day_order_num"]); ?></td>
                            <td><?php echo ($vo["type_day"]); ?></td>
                            <td class="qiangdiao"><?php echo ($vo["day_total"]); ?></td>
                            <td><?php echo ($vo["day_order_num"]); ?></td>
                            <td>
                                <a target="_self" href="<?php echo U('Financialadmin/edit',array('id'=>$vo[id]));?>" target="_self" >修改</a>
                            </td>
                        </tr><?php endforeach; endif; ?>
                        <?php else: ?>
                        <tr><td colspan="9" style="text-align: center">没有相关信息！！！</td></tr><?php endif; ?>
                </table>
            </div>
        </form>
    </div>
<script src="/statics/js/common.js"></script>
</body>
</html>